from flask import Flask
from werkzeug.middleware.dispatcher import DispatcherMiddleware
from werkzeug.exceptions import NotFound

from app import create_app
from celeryadmin import app as celeryadmin_app

app=create_app()
dapp=Flask(__name__)
app.wsgi_app=DispatcherMiddleware(NotFound(),{
	'/':app,
	'/celeryadmin':celeryadmin_app
	})

if __name__=='__main__':
	app.run(host='0.0.0.0',port=5000,debug=True)